package org.lzy.shop.response

data class GoodsInfoResponse(
    val comment: List<Comment>,
    val coupon: List<Coupon>,
    val goodsInfo: GoodsInfo
)

//评论
data class Comment(
    //谁的评论头像地址
    val avatarUrl: String,
    //评论内容
    val content: String,
    //评论时间
    val createTime: String,
    //商品id
    val goodsId: Int,
    val id: Int,
    //商品名
    val nickName: String,
    //订单id
    val orderId: Int,
    //评论过的图片
    val pics: MutableList<String>,
    //评论星级
    val starCount: Int,
    val updateTime: String,
    val userId: Int
)

//优惠劵
data class Coupon(
    val amount: Int,
    val condition: Condition,
    val createTime: String,
    val description: String,
    val endTime: String,
    val id: Int,
    val num: Int,
    val receivedNum: Int,
    val startTime: String,
    val status: Int,
    val title: String,
    val type: Int,
    val updateTime: String
)

//商品名
data class GoodsInfo(
    //商品内容
    val content: String,
    //商品图片连发
    val contentPics: List<String>,
    //商品时间
    val createTime: String,
    val featured: Boolean,
    //商品ID
    val id: Int,
    //商品主图
    val mainPic: String,
    //商品图片
    val pics: List<String>,
    //商品价格
    val price: Int,
    //是否是商品热门
    val recommend: Boolean,
    //商品售卖
    val sold: Int,
    //排序
    val sortNum: Int,
    //规格
    val specs: Any,
    //商品名
    val status: Int,
    //商品名
    val subTitle: String,
    //商品标题
    val title: String,
    //商品副标题
    val typeId: Int,
    val updateTime: String
)

data class Condition(
    val fullAmount: Int//是否符合条件范围内
)